package com.yfp.operation.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @version 1.0
 * @date 2024-07-15 16:24
 */
@Data
@Tag(name = "活动列表返回实体类")
public class MarCouponVO {

    /**
     * id
     */
    private Long id;

    /**
     * 优惠券名称
     */
    @Schema(description = "优惠券名称")
    private String couponName;

    /**
     * 优惠券描述
     */
    @Schema(description = "优惠券描述")
    private String remark;

    /**
     * 优惠券类型
     */
    @Schema(description = "优惠券类型")
    private Integer type;

    /**
     * 优惠金额
     */
    @Schema(description = "优惠金额")
    private BigDecimal discounts;

    /**
     * 优惠券状态
     */
    @Schema(description = "优惠券状态")
    private Integer status;

    /**
     * 优惠券剩余数量
     */
    @Schema(description = "优惠券剩余数量")
    private Integer surplusCount;

    /**
     * 优惠券领取数量
     */
    @Schema(description = "优惠券领取数量")
    private Integer neckNum;

    /**
     * 优惠券使用数量
     */
    @Schema(description = "优惠券使用数量")
    private Integer useNum;

    /**
     * 成交金额
     */
    @Schema(description = "成交金额")
    private BigDecimal turnover;

    /**
     * 优惠笔单价
     */
    @Schema(description = "优惠笔单价")
    private BigDecimal unitPrice;

    /**
     * 优惠方式1满减2折扣
     */
    @Schema(description = "优惠方式1满减2折扣")
    private String discountsType;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "开始时间")
    private Date validStartTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "结束时间")
    private Date validEndTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 优惠详情
     */
    @Schema(description = "优惠详情")
    private String details;

    /**
     * 营销id
     */
    @Schema(description = "营销id")
    private Long marketingId;

    @Schema(description = "运营城市")
    private String cityName;
}
